#include "../include/SmartHomeMonitorServer.h"
#include "../include/Configuration.h"

void test() {
    Configuration::getInstance()->read("./conf/server.conf");
    SmartHomeMonitorServer server(std::stoi(Configuration::getInstance()->getValue("thread_num")),
                                  std::stoi(Configuration::getInstance()->getValue("task_num")),
                                  std::stoi(Configuration::getInstance()->getValue("port")),
                                  Configuration::getInstance()->getValue("ip"));
    server.start();
}

int main() {
    test();
    return 0;
}
